﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="productViewList.aspx.cs" Inherits="Think.Lenovo.Com.productViewList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <!-- stylesheets -->
    <link href="/Contents/css/skin.css" rel="stylesheet" type="text/css" />
    <script src="/Contents/resources/scripts/jquery-ui-1.8.custom.min.js" type="text/javascript"></script>
    <link rel="stylesheet" type="text/css" href="/Contents/resources/css/reset.css" />
    <link rel="stylesheet" type="text/css" href="/Contents/resources/css/style.css" media="screen" />
    <link rel="stylesheet" type="text/css" href="/Contents/resources/css/style_fixed.css" />
    <link id="Link1" rel="stylesheet" type="text/css" href="/Contents/resources/css/colors/blue.css" />
    <meta http-equiv="Cache-Control" content="no" />
    <link rel="stylesheet" type="text/css" href="/Contents/resources/css/reset.css" />
    <link rel="stylesheet" type="text/css" href="/Contents/resources/css/style.css" media="screen" />
    <link id="color" rel="stylesheet" type="text/css" href="/Contents/resources/css/colors/blue.css" />
    <script type="text/javascript" src="/Scripts/lib/jquery-1.4.4.min.js"></script>
    <script type="text/javascript" src="/Scripts/lib/SerializeObject.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="content" style="background: url(/Contents/resources/images/background.png);">
        <!-- content / right -->
        <div id="right">
            <div class="box">
                <!-- box / title -->
                <div class="title">
                    <h5>
                        产品列表</h5>
                </div>
                <div class="table">
                    <div>
                        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                            OnPageIndexChanging="GridView1_PageIndexChanging" OnRowCancelingEdit="GridView1_RowCancelingEdit"
                            OnRowDeleting="GridView1_RowDeleting" OnRowEditing="GridView1_RowEditing" DataKeyNames="id"
                            OnRowDataBound="GridView1_RowDataBound">
                            <Columns>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:CheckBox ID="CheckBox1" runat="server" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="id" HeaderText="id" />
                                 <asp:HyperLinkField DataTextField="title" HeaderText="产品标题" DataNavigateUrlFormatString="/home/productView.aspx?id={0}" DataNavigateUrlFields="id" Target="_blank" />
                                 <asp:BoundField DataField="Pclass" HeaderText="产品类别" />
                                <asp:BoundField DataField="ReleaseTime" HeaderText="发布时间" />
                                <asp:HyperLinkField DataNavigateUrlFields="id" HeaderText="更新" DataNavigateUrlFormatString="productAdd.aspx?id={0}"
                                    Target="_blank" Text="编辑" />
                                <asp:CommandField ShowDeleteButton="True" />
                            </Columns>
                            <EmptyDataTemplate>
                                暂无数据
                            </EmptyDataTemplate>
                        </asp:GridView>
                        <asp:CheckBox ID="CheckBox2" runat="server" AutoPostBack="True" Font-Size="9pt" OnCheckedChanged="CheckBox2_CheckedChanged"
                            Text="全选" />
                        <asp:Button ID="all" runat="server" Text="取消" OnClick="all_Click" />
                        <asp:Button ID="delete" runat="server" Text="删除" OnClick="delete_Click" />
                    </div>
                </div>
            </div>
        </div>
    </div>
    </form>
</body>
</html>